package com.zkq.d_withanno;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Map;

public class Annon {

    public static void main(String[] args) {
        ApplicationContext beanFactory=new ClassPathXmlApplicationContext("basic_dl/annon.xml");

        Map<String, Object> beansWithAnnotation = beanFactory.getBeansWithAnnotation(Color.class);

        beansWithAnnotation.forEach((name,value)->{
            System.out.println(name+">>>"+value);
        });


    }
}
